package com.rybbaby.tss.front.tssMemberReturnPremium.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssMemberReturnPremium.dao.IViewRefundDetailsDao;
import com.rybbaby.tss.front.tssMemberReturnPremium.entity.ViewRefundDetails;
import com.rybbaby.tss.front.tssMemberReturnPremium.service.IViewRefundDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 会员退费记录表数据库操作服务实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:14:02
 */
@Service
@Transactional
public class ViewRefundDetailsServiceImp extends BaseServiceImp<ViewRefundDetails> implements IViewRefundDetailsService {

    @Autowired
    private IViewRefundDetailsDao IViewRefundDetailsDao;

    @Override
    public List<ViewRefundDetails> viewRefundDetailsList(String memberId) throws Exception {
        return IViewRefundDetailsDao.viewRefundDetailsList(memberId);
    }

    @Override
    public ViewRefundDetails findByrefundId(String refundId) {
        return IViewRefundDetailsDao.get(ViewRefundDetails.class,refundId);
    }
}
